package com.runnor.common.websys.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.runnor.common.websys.system.entity.Article;
import com.runnor.common.websys.system.entity.bo.ArticleBo;
import com.runnor.common.websys.system.service.ArticleService;
import com.runnor.common.websys.system.mapper.ArticleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author runnor
 * @description 针对表【article】的数据库操作Service实现
 * @createDate 2023-08-21 09:46:26
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article>
        implements ArticleService {

    @Autowired
    ArticleMapper articleMapper;

    @Override
    public Page pages(Page page, QueryWrapper queryWrapper) {
        return articleMapper.pages(page, queryWrapper);
    }

    @Override
    public List<ArticleBo> getListByAccount(String accountName) {
        return articleMapper.getListByAccount(accountName);
    }

    @Override
    public List<ArticleBo> getListBySource(String source) {
        return articleMapper.getListBySource(source);
    }
}




